package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 商品表 Bean
 */
@TableName("t_stock")
public class StockBean {
    /** 商品ID */
    @TableId("pk_stockId")
    private String stockId;
    /** 商品名称 */
    @TableField("st_name")
    private String name;
    /**品牌*/
    @TableField("st_brand")
    private String brand;
    /**类别*/
    @TableField("st_kind")
    private String kind;
    /**图片*/
    @TableField("st_imgPath")
    private String imgPath;
    /**库存数量*/
    @TableField("st_num")
    private Integer num=0;
    /**最新采购价*/
    @TableField("st_inPrice")
    private Integer inPrice;
    /**建议零售价*/
    @TableField("st_outPrice")
    private Integer outPrice;

    public StockBean() {
    }

    public StockBean(String stockId) {
        this.stockId = stockId;
    }

    public StockBean(String stockId, String name, String brand, String kind, String imgPath) {
        this.stockId = stockId;
        this.name = name;
        this.brand = brand;
        this.kind = kind;
        this.imgPath = imgPath;
    }

    public String getStockId() {
        return stockId;
    }

    public void setStockId(String stockId) {
        this.stockId = stockId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getKind() {
        return kind;
    }

    public void setKind(String kind) {
        this.kind = kind;
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getInPrice() {
        return inPrice;
    }

    public void setInPrice(Integer inPrice) {
        this.inPrice = inPrice;
    }

    public Integer getOutPrice() {
        return outPrice;
    }

    public void setOutPrice(Integer outPrice) {
        this.outPrice = outPrice;
    }

    @Override
    public String toString() {
        return "StockBean{" +
                "stockId='" + stockId + '\'' +
                ", name='" + name + '\'' +
                ", brand='" + brand + '\'' +
                ", kind='" + kind + '\'' +
                ", imgPath='" + imgPath + '\'' +
                ", num=" + num +
                ", inPrice=" + inPrice +
                ", outPrice=" + outPrice +
                '}'+'\n';
    }
}
